#	gedex.csh - C shell GEDEX CD-ROM initialization
#
#	source this file via: source /cdrom/gedex.csh 
#	 source /cdrom/software/irix/gedex.sh	# for IRIX
#	 source /cdrom/software/sunos/gedex.sh	# for SunOS
#	 (note: use source "/cdrom/SOFTWARE/HPUX/GEDEX.CSH;1" on HP-UX)
#        substituting your cd mount point for /cdrom
#
#	after running this initialization use the command gedex to run
#
echo "what directory is the mount point for your cd-rom drive? "
setenv GEDEXDIR $<

switch ( `uname -s` )

  case HP-UX:
	set os=HPUX;
	set jamdir=$GEDEXDIR/SOFTWARE/JAM
	setenv SMDICNAME "$jamdir/DATA.DIC;1"
	setenv SMPATH $jamdir
	setenv SMKEY "$jamdir/VT100KEY.BIN;1"
	setenv SMVIDEO "$jamdir/VT100VID.BIN;1"
	setenv SMMSGS "$jamdir/MSGFILE.BIN;1"
	setenv SMFEXTENSION "JAM;1"
	setenv PATH $GEDEXDIR/SOFTWARE/{$os}:$PATH
	alias gedex '"JAM;1"' PRODUCTS
	breaksw;


  case IRIX:
	set os=irix;
	set jamdir=$GEDEXDIR/software/jam
	setenv SMDICNAME $jamdir/data.dic
	setenv SMPATH $jamdir
	setenv SMKEY $jamdir/vt100key.bin
	setenv SMVIDEO $jamdir/vt100vid.bin 
	setenv SMMSGS $jamdir/msgfile.bin
	setenv SMFEXTENSION jam
	setenv PATH $GEDEXDIR/software/{$os}:$PATH
	alias gedex "jam products"
	breaksw;


  case SunOS:
	set os=sunos;
	set jamdir=$GEDEXDIR/software/jam
	setenv SMDICNAME $jamdir/data.dic
	setenv SMPATH $jamdir
	setenv SMKEY $jamdir/vt100key.bin
	setenv SMVIDEO $jamdir/vt100vid.bin 
	setenv SMMSGS $jamdir/msgfile.bin
	setenv SMFEXTENSION jam
	setenv PATH $GEDEXDIR/software/{$os}:$PATH
	alias gedex "jam products"
	breaksw;


  default:
	echo "unsupported system cannot continue...";
	breaksw;

endsw

echo "type gedex to begin execution"
